import com.google.inject.AbstractModule;
import com.google.inject.multibindings.Multibinder;

public class Module extends AbstractModule
{
    @Override
    protected void configure()
    {
        bind(IAuthenticatorsProvider.class).to(AuthenticatorsProvider.class);
        Multibinder<IAuthenticator> multibinder = Multibinder.newSetBinder(binder(), IAuthenticator.class);
        multibinder.addBinding().to(FacebookAuthenticator.class);
        multibinder.addBinding().to(GmailAuthenticator.class);
        multibinder.addBinding().to(LocalAuthenticator.class);
    }
}
